package com.longge;

/**
 * @program: my-code
 * @description:
 * @author: longge
 * @create: 2021-03-07 23:56
 */
public class Average {
    public double average(int[] salary) {

        int min = Integer.MAX_VALUE, max = Integer.MIN_VALUE, count = 0;
        for (int i : salary) {
            count += i;
            max = Math.max(max, i);
            min = Math.min(min, i);
        }
        return (count-min-max)/(salary.length-2);

    }

    public static void main(String[] args) {
        float a = 1.20f;
        float b = 1.00f;
        System.out.println(a/b);
        String c = "6666667";
        System.out.println(c.length());
    }
}
